[IA64] Fix incorrect NVRAM saving if domain is destroyed by config error
authorAlex Williamson <alex.williamson@hp.com>
Mon, 2 Jul 2007 15:05:24 +0000 (09:05 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Mon, 2 Jul 2007 15:05:24 +0000 (09:05 -0600)
commitb624e17e3ddf2ee3872b54f4fdb10ceed4c72c2d
tree9b7ba650f911ccaca14006ba8da704193aac9638
parent7d4d684419f736939a87801e048ea786b9c3c525
[IA64] Fix incorrect NVRAM saving if domain is destroyed by config error

Nvram saving is always executed even if a domain is destroyed by a
configuration parameter error.  In this case, Nvram saving function
will get a bad address for the NVRAM data and save garbage into the
NVRAM file. Configuring a wrong vif parameter can expose this issue.

This patch fixes the issue by adding an address check function in
NVRAM saving path.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
tools/libxc/ia64/xc_ia64_hvm_build.c
xen/include/public/arch-ia64.h